package view.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import view.GamePanel;
import view.PauseMenu;

/**
 * This class gives funcitonality to the pause button in the pausePanel
 * in the GamePanel. Toggles the pause of the game.
 * @author Stephanie
 *
 */
public class PauseListener implements ActionListener {
	
	private GamePanel gamePanel;
	private PauseMenu pm;
	
	public PauseListener( GamePanel gamePanel, PauseMenu pm ) {
		this.gamePanel = gamePanel;
		this.pm = pm;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		pm.show(gamePanel,200,100);
	}

}
